package business;

import util.JDate;

public class Company {
	public int id;
	private String name;
	private String address;
	private boolean location; 
	private JDate fechaInventario;
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	public boolean getLocation() {
		return location;
	}
	
	public void setLocation(boolean location) {
		this.location = location;
	}
	
	public void setLocation(byte location) {
		if (location == 0) this.location = false;
		else if (location == 1) this.location = true;
	}

	public JDate getFechaInventario() {
		return fechaInventario;
	}

	public void setFechaInventario(JDate fechaInventario) {
		this.fechaInventario = fechaInventario;
	}
}